package com.heima.article;

import static java.util.Arrays.binarySearch;

/**
 * The rapid development of artificial intelligence has led to widespread concerns about job displacement.it's of great necessity
 * for society to adapt to these changes and support workers in transition. Reasons and concrete evidence to support my viewpoint
 * are as follows.
 * In the first place, there is no doubt that AI can replace repetitive and routine tasks, such as driver, cashier, etc.
 * improving efficiency and productivity. Based on big data,most of the employees admitted that they have spent 2/3 of
 * their time on tasks that could soon be automated. Moreover, no one can deny that AI is creating new industries and challenges
 * for everyone, Where there are challenges, there are also new fields for innovation. Last but not least, I firmly believe
 * that workers must continue to develop skills that AI cannot replicate. The more soft skills you have, the more opportunity
 * you can create.
 * In conclusion, while AI presents challenges, it also offers opportunities for growth. If we spare no efforts to equip
 * workers with relevant skills. The future of the workspace will be both dynamic and prosperous.
 */
public class ArtificialIntelligence {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        int target = 5;
        int index = binarySearch(arr, target);
        if (index == -1) {
            System.out.println("Target not found");
        } else {
            System.out.println("Target found at index " + index);
        }
    }
}
